package cn.psvmc.cxzapi.model.store;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 地址表
 * @Author auto
 * @Date 2024-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_address")
public class TAddress implements Serializable {

    //商家id
    @TableId(value = "addressid", type = IdType.AUTO)
    private Integer addressid;

    //地址类型(1发货地址2归还地址)
    @TableField("address_type")
    private Integer addressType;

    //默认地址（0否 1是）
    @TableField("is_default")
    private Integer isDefault;

    //地址
    @TableField("address")
    private String address;

    //商家id
    @TableField("storeid")
    private Integer storeid;

    //联系人
    @TableField("contact_name")
    private String contactName;

    //联系电话
    @TableField("contact_phone")
    private String contactPhone;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;


}
